package com.ruoyi.api.daoru;

import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 寻觅
 * @since 2025-07-03
 */

@RestController
@RequestMapping("/import/address")
public class importAddressController {

    @Autowired
    private ImportAddressService importAddressService;

    @PostMapping("/excel")
    public ImportResult importExcel(@RequestParam("file") MultipartFile file) {
    return importAddressService.validateAndImport(file);
    }
}
